package com.linwen.javase.desgin_pattern.action.mediator;

/**
 * @ClassName MediatorTest
 * @Description 终结者模式测试
 * @Author lin
 * @Date 2022/6/29 上午12:42
 * @Version V1.0
 */
public class MediatorTest {
    public static void main(String[] args) {
        Mediator md = new ConcreteMediator();
        Colleague c1, c2;
        c1 = new ConcreteColleague1();
        c2 = new ConcreteColleague2();
        md.register(c1);
        md.register(c2);
        c1.send();
        System.out.println("-------------");
        c2.send();
    }
}
